package com.project_doctor.service;

import com.project_doctor.pojo.Doctor;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project_doctor.pojo.dto.DoctorRequest;
import com.project_doctor.pojo.dto.PersonalProfileDto;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
* @author xixif
* @description 针对表【t_doctor(医生信息表)】的数据库操作Service
* @createDate 2025-06-16 15:44:19
*/
public interface DoctorService extends IService<Doctor> {
    List<Doctor> getDoctor();

    List<Doctor> getAllDoctors(DoctorRequest doctorRequest);

    List<Doctor> getDoctorByBatchId(List<Long> ids);

    Doctor getUserById(Long userId);
    String getUserName(Long userId);
    String getUserAvatar(Long userId);
    void updateUserStatus(Long userId, String status);

    // 新增登录相关方法
    ResponseEntity doLogin(PersonalProfileDto personalProfileDto);
    Doctor findUserByMobile(String mobile);
    boolean isMobileExist(String mobile);
    boolean isUsernameExist(String username);
    Doctor register(Doctor user);
    Integer editUser(Doctor user);
    Doctor findUserById(Long doctorId);
    Integer modifyPassword(Long doctorId, String password);
}
